import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Link } from 'react-router-dom';
import Home from '../components/Home';
import MovieList from '../containers/MovieList';
import AddTodo from '../containers/AddTodo';

class RouterDom extends Component {
    constructor(props) {
        super(props);
    }
    render() {
        return (
            <div>
                <Router>
                    <Home>
                        <Route exact path="/" component={MovieList} />
                        <Route path="/addTodo" component={AddTodo} />
                    </Home>
                </Router>
            </div>
        )
    }
}

export default RouterDom;